package easy;

public class Solution_1598 {

    public int minOperations(String[] logs) {
        int count = 0;
        for (String log : logs) {
            if (log.startsWith("..")) {
                count--;
            } else if (log.startsWith(".")) {

            } else {
                count++;
            }
            if (count < 0) {
                count = 0;
            }
        }
        return count;
    }

    public static void main(String[] args) {
        Solution_1598 model = new Solution_1598();
    }
}
